package com.ruoyi.order.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单详情对象 tb_product_order_detail
 * 
 * @author ruoyi
 * @date 2025-08-24
 */
public class TbProductOrderDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单ID */
    @Excel(name = "订单ID")
    private String orderId;
    /** 商品ID */
    @Excel(name = "商品ID")
    private Long productId;
    /** 规格ID */
    @Excel(name = "规格ID")
    private Long specificationId;
    /** 单价表ID */
    @Excel(name = "单价表ID")
    private Long priceId;
    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal unitPrice;
    /** 购买数量 */
    @Excel(name = "购买数量")
    private Long nums;
    /** 报价 */
    @Excel(name = "报价")
    private BigDecimal sumPrice;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public void setProductId(Long productId)
    {
        this.productId = productId;
    }

    public Long getProductId()
    {
        return productId;
    }

    public void setSpecificationId(Long specificationId)
    {
        this.specificationId = specificationId;
    }

    public Long getSpecificationId()
    {
        return specificationId;
    }

    public void setPriceId(Long priceId)
    {
        this.priceId = priceId;
    }

    public Long getPriceId()
    {
        return priceId;
    }

    public void setUnitPrice(BigDecimal unitPrice)
    {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getUnitPrice()
    {
        return unitPrice;
    }

    public void setNums(Long nums)
    {
        this.nums = nums;
    }

    public Long getNums()
    {
        return nums;
    }

    public void setSumPrice(BigDecimal sumPrice)
    {
        this.sumPrice = sumPrice;
    }

    public BigDecimal getSumPrice()
    {
        return sumPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("productId", getProductId())
            .append("specificationId", getSpecificationId())
            .append("priceId", getPriceId())
            .append("unitPrice", getUnitPrice())
            .append("nums", getNums())
            .append("sumPrice", getSumPrice())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}
